<template>
  <!-- 8.router-view 是占位组件，用来存放路由组件 -->
  <!-- keep-alive 缓存路由组件 -->
  <!-- 
    <keep-alive>
      <router-view></router-view>
    </keep-alive> 
  -->
  <!-- 
    9.keep-alive :
     - 设置某个组件被缓存 
     - 只会缓存当前包含的，不会深层次控制它的子组件
  -->
  <keep-alive :include="['Home','Login']">
    <router-view></router-view>
  </keep-alive>
</template>

<script>
export default {
  name: "App",
};
</script>

<style>
</style>